# At it's simplest, a module can be just a ps1 file renamed to psm1
# with functions defined

function Write-One()
{
	Write-Output "One"
}

function Write-Two()
{
	Write-Output "Two"
}

# Note if you declare a variable it's scope is limited to the module
$scopedToModuleOnly="In the morning"

# To make it everywhere you could make it global
$Global:scopedGlobal="In the Global Morning"

# A better solution is to us a script level variable and wrap in a function
$Script:scopedToScript="In the script morning"

function Get-ITM()
{
	return $Script:scopedToScript
}

function Write-ITM($item)
{
	$Script:scopedToScript=$item
}


